<?php

namespace App\Controller;

use App\Controller\AbstractController;
use App\Exception\BaseException;

class AuthController extends AbstractController
{

    /**
     * @throws BaseException
     */
    public function login(): array
    {
        $param = $this->inspectHelper->check(
            $this->request->all(),
            [
                'username'=>'required|min:4',
                'password'=>'required|min:6'
            ],
            ['*.*'=>'账号或者密码错误']
        );
        return [];
    }
}